package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.Language;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LanguageRepository extends JpaRepository<Language  , Long> {


    List<Language> queryByStateEquals(Integer state);

    List<Language> findAllByNameEquals(String name);

    List<Language> findAllByNameEnEquals(String nameEn);

    Language findFirstByName(String name);

}
